package 设计模式.iterator;

import java.util.ArrayList;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        List<College> colleges=new ArrayList<College>();
        ComputCollege computCollege=new ComputCollege();
        InfoCollege infoCollege=new InfoCollege();
        colleges.add(computCollege);
        colleges.add(infoCollege);

        OutPutImpl outPut=new OutPutImpl(colleges);
        outPut.printCollege();
    }
}
